|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.caucho.server.http.AbstractRequest
|
+--com.caucho.server.http.Request
|
+--com.caucho.server.http.HttpRequest
Handles a new request from an HTTP connection.
| Fields inherited from class com.caucho.server.http.Request |
bogusSecure, cb, closeOnExit, conn, currentTransaction, filterStream, hasInputStream, invocationKey, isSecure, rawStream, response, server, sessionGroup, version |
| Fields inherited from class com.caucho.server.http.AbstractRequest |
cache, calendar, CONTEXT_PATH, ERROR_URI, EXCEPTION, invocation, JSP_EXCEPTION, MESSAGE, PATH_INFO, QUERY_STRING, REQUEST_URI, SERVLET_PATH, STATUS_CODE |
| Fields inherited from interface javax.servlet.http.HttpServletRequest |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
| Method Summary | |
java.lang.String |
findSessionIdFromConnection()
For SSL connections, use the SSL identifier. |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the named attribute. |
java.util.Enumeration |
getAttributeNames()
Returns an enumeration of the attribute names. |
CharSegment |
getHeaderBuffer(char[] testBuf,
int length)
Returns the matching header. |
CharSegment |
getHeaderBuffer(java.lang.String key)
Returns the header value for the key, returned as a CharSegment. |
void |
getHeaderBuffers(java.util.ArrayList values,
java.lang.String key)
Fills an ArrayList with the header values matching the key. |
java.util.Enumeration |
getHeaderNames()
Returns an enumeration of all the header keys. |
java.util.Enumeration |
getHeaders(java.lang.String key)
Return an enumeration of headers matching a key. |
CharSegment |
getMethodBuffer()
Returns a buffer containing the request method. |
CharSegment |
getProtocolBuffer()
Returns a char segment containing the protocol. |
java.lang.String |
getRemoteAddr()
Returns the address of the remote client. |
java.lang.String |
getRemoteHost()
Returns the client's remote host name. |
java.lang.String |
getScheme()
Returns the request's scheme. |
java.lang.String |
getServerName()
Returns the remote server name. |
int |
getServerPort()
Returns the server (local) port index. |
byte[] |
getUriBuffer()
Returns the byte buffer containing the request URI |
int |
getUriLength()
Returns the length of the request URI |
void |
handleConnection(com.caucho.server.Connection conn)
Handles a new connection. |
boolean |
isSecure()
Returns true if the connection is secure. |
int |
printRemoteAddr(byte[] buffer,
int offset)
Prints the remote address into a buffer. |
void |
setHeader(java.lang.String key,
java.lang.String value)
Adds a new header. |
protected void |
start(ReadStream s)
Clear the request variables in preparation for a new request. |
| Methods inherited from class com.caucho.server.http.AbstractRequest |
authenticate, createSession, getAuthType, getCauchoApplication, getDateHeader, getIntHeader, getMedia, getRemoteUser, getRemoteUser, getRequestDepth, getRequestDispatcher, getRequestURL, getSession, getUserPrincipal, isUserInRole, logoutUserPrincipal, setHasCookie |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void handleConnection(com.caucho.server.Connection conn)
throws java.io.IOException
conn - the new connection
protected void start(ReadStream s)
throws java.io.IOException
start in class Requests - the read stream for the requestpublic java.lang.String getScheme()
getScheme in class Requestjavax.servlet.ServletRequestString containing the name
of the scheme used to make this requestpublic CharSegment getMethodBuffer()
getMethodBuffer in class Requestpublic byte[] getUriBuffer()
getUriBuffer in class Requestpublic int getUriLength()
getUriLength in class Requestpublic boolean isSecure()
isSecure in class Requestjavax.servlet.ServletRequestpublic CharSegment getProtocolBuffer()
getProtocolBuffer in class Request
public void setHeader(java.lang.String key,
java.lang.String value)
setHeader in class Requestkey - the key of the new headervalue - the value for the new header
public CharSegment getHeaderBuffer(char[] testBuf,
int length)
getHeaderBuffer in class RequesttestBuf - header keylength - length of the key.public CharSegment getHeaderBuffer(java.lang.String key)
getHeaderBuffer in class Request
public void getHeaderBuffers(java.util.ArrayList values,
java.lang.String key)
getHeaderBuffers in class Requestvalues - ArrayList which will contain the maching values.key - the header key to select.public java.util.Enumeration getHeaders(java.lang.String key)
getHeaders in class Requestkey - the header key to match.public java.util.Enumeration getHeaderNames()
getHeaderNames in class Requestjavax.servlet.http.HttpServletRequestnullpublic java.lang.String getServerName()
getServerName in class Requestjavax.servlet.ServletRequestString containing the name
of the server to which the request was sentpublic int getServerPort()
getServerPort in class Requestjavax.servlet.ServletRequestpublic java.lang.String getRemoteAddr()
getRemoteAddr in class Requestjavax.servlet.ServletRequestString containing the
IP address of the client that sent the request
public int printRemoteAddr(byte[] buffer,
int offset)
throws java.io.IOException
printRemoteAddr in class Requestbuffer - the buffer which will contain the address.offset - the initial offset into the buffer.public java.lang.String getRemoteHost()
getRemoteHost in class Requestjavax.servlet.ServletRequestString containing the fully qualified name
of the clientpublic java.lang.Object getAttribute(java.lang.String name)
getAttribute in class Requestjavax.servlet.ServletRequestname - a String specifying the name of
the attributeObject containing the value
of the attribute, or null if
the attribute does not existpublic java.util.Enumeration getAttributeNames()
getAttributeNames in class Requestjavax.servlet.ServletRequestEnumeration of strings
containing the names
of the request's attributespublic java.lang.String findSessionIdFromConnection()
findSessionIdFromConnection in class Request
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||